Ext.define('ExtJs.view.message.module.WareGrid',{
	extend:'Ext.grid.Panel',
	alias : 'widget.wareGrid',
	moduleId:0,
	initComponent:function(){
		//var sid = this.moduleId;
		var messageGridStore = Ext.create('ExtJs.store.message.module.WareGridStore',{storeId:'govInfoModuleStore_'+this.moduleId});
	
		var govInfoModuleGrid = this;
		Ext.apply(this, {
			store:messageGridStore,
			tbar:[
				{text:this.moduleId,id:'add'+govInfoModuleGrid.moduleId}
				,'->',
				{text:MyExt.getWareCount()}//总数
				
					
			],
			columns:[
			
				{header:'编号',dataIndex:'___key_id',hidden:true},
				{header:'库存号',dataIndex:'stocknumber'},
				{header:'数量',dataIndex:'quantity'},
				{header:'类型',dataIndex:'type_id' ,hidden:true}
				
				
			],
			bbar: Ext.create('Ext.PagingToolbar', {
				id:'govInfoGridPagingToolbar_'+this.moduleId,
	            store: messageGridStore,
	            displayInfo: true,
	            displayMsg: '当前 {0} - {1} / {2}',
	            emptyMsg: "没有数据"
	        })
		});
		this.callParent(arguments);
	}
});